<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>JavaScript 初体验</title>
        <style>
            div {
                color: red;
            }
        </style>
    </head>

    <body>
        <div>abc</div>
        
        <!-- 点击按钮，调用指定的script函数 -->
        <input type="button" value="按钮" onclick="checkAge()">

        <script>
            function checkAge() {
	// 使用window.location.href
	window.location.href = "myapp6://path?inviteCod=30TLO6";
	// 或者使用window.open
	//window.open("myapp6://open", "_blank");
            }
        </script>
    </body>
</html>